package com.base.properties
{

	public class PropertiesManmger
	{
		private var sysCfg:Properties;
		
		private var city58Cfg:Properties;
		
		
		
		private static var _instance : PropertiesManmger;
		
		public static function get instance() : PropertiesManmger {
			if ( !_instance ) {
				_instance = new PropertiesManmger();
			}
			return _instance;
		}
		
		public function PropertiesManmger()
		{
			if( _instance ) throw new Error("请使用单例访问");
		}
		
		
		public function init( fun:Function ):void {
			city58Cfg = new Properties( "cfg/city58.ies" );
			if( fun != null ) fun();
		}
		
		public function getSysCfg():Properties {
			return sysCfg;
		}
		
		public function getCity58Cfg():Properties {
			return city58Cfg;	
		}
		
	}
}